package Company;

public class Staff {
    private int time;
    public String name;
    private int basicSalary = 4000;


    public Staff() {
    }

    public Staff(int time) {
        this.time = time;
    }


    public void setTime(int time) {
        this.time = time;
    }

    public int totalSalary() {
        int salary;
        if (this.time > 196) {
            salary = (this.time - 196) * 200 + this.basicSalary;
            return salary;
        } else
            return basicSalary;
    }
}
